package com.towker.frame.dao.report;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import com.sun.istack.internal.FinalArrayList;
import com.towker.core.db.BaseDao;
import com.towker.frame.model.report.SellReport;

@Repository
public class SellReportDao  extends BaseDao<SellReport, Long>{

	@Override
	public Class getEntityClass() {
		return SellReport.class;
	}
	
	public List<SellReport> getReports(final Map paramsMap) {
		return (List<SellReport>) getSqlSessionTemplate().execute(new SqlSessionCallback() {
			
			@Override
			public List<SellReport> doInSession(SqlSession session) {
				return session.selectList(getIbatisMapperNamespace()+".getSellReport", paramsMap);
			}
		});
	}
}
